home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
bbs
/
igmkit10.zip
/
IGMMAKE.ZIP
/
IGMMAKE.PAS
< prev
Wrap
Pascal/Delphi Source File
|
1997-06-20
|
2KB
|
74 lines
{This source is distributed with the IGMKit, and WILL NOT BE DOCUMENTED!}
program MakeData;
uses Crt, Dos;
type IGMInfo=record
Name: string[60];
Author: string[60];
EXE: string;
Config: string;
NumOpts: integer;
OptText: array [1..10] of string;
OptType: array [1..10] of Integer;
end;
IFile=file of IGMInfo;
var IGMF: Ifile;
TInt, TM, tim: integer;
IGM: IGMInfo;
TChr: char;
begin
ClrScr;
assign (IGMF, 'IGMEDIT.DAT');
rewrite(IGMF);
with IGM do
begin
Write('Enter Name of IGM: ');
Readln(Name);
Write('Author: ');
Readln(Author);
Write('Main EXE Name (ex PHONETAP.EXE): ');
Readln(EXE);
Write('CONFIG File Name (ex PHONE.CFG): ');
Readln(Config);
for Tim:=1 to 10 do
begin
Write('CONFIG Line ', Tim,' (''NONE'' quits): ');
Readln(OptText[Tim]);
if OPtText[Tim]='NONE' then break;
Writeln;
Writeln('What type of option');
Writeln('0 - Oops, messed up');
Writeln('1 - Find HACKER.EXE');
Writeln('2 - Find ',EXE);
Writeln('3 - Variable');
Writeln;
repeat
TChr:=Readkey;
until (TChr='0') or (TChr='1') or (TChr='2') or (TChr='3') ;
if TChr='0' then
Tim:=TIm-1
else
begin
Val(TChr, Tint, TM);
OptType[Tim]:=Tint;
end;
end;
IGM.NumOpts:=Tim-1;
for TM:=Tim to 10 do
OptText[Tim]:='NONE';
for TM:=Tim to 10 do
OptType[Tim]:=0;
end;
Write(IGMF, IGM);
close(IGMF);
end.